﻿<%@ Page Language="VB" MasterPageFile="~/HelpDesk.master" AutoEventWireup="false"
    CodeFile="Utilisateurs.aspx.vb" Inherits="Admin_Utilisateurs" Title="Utilisateurs"
    Theme="HelpDesk" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1>
        <asp:Literal ID="Literal1" runat="server" meta:resourcekey="Literal1Resource1" Text="Utilisateurs"></asp:Literal>
    </h1>
    <table width="100%">
        <tr>
            <td width="50%">
                <a href="UtilisateursForm.aspx">
                    <img src="../Images/Icones/key_add.png" alt="" />
                    <asp:Literal ID="Literal2" runat="server" meta:resourcekey="Literal2Resource1" Text="Nouvel utilisateur"></asp:Literal>
                </a>
            </td>
            <td width="50%">
                &nbsp;</td>
        </tr>
    </table>
    <asp:ObjectDataSource ID="MembershipUserListDataSource" runat="server" SelectMethod="GetAllUsers"
        TypeName="System.Web.Security.Membership" OldValuesParameterFormatString="original_{0}">
    </asp:ObjectDataSource>
    <asp:GridView ID="MemberList" runat="server" AutoGenerateColumns="False" DataKeyNames="Username"
        DataSourceID="MembershipUserListDataSource" meta:resourcekey="MemberListResource1">
        <Columns>
            <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                <ItemTemplate>
                    <asp:HyperLink ID="LienModifierUtilisateur" runat="server" NavigateUrl='<%# Eval("UserName", "UtilisateursForm.aspx?user={0}") %>'
                        meta:resourcekey="LienModifierUtilisateurResource1">
                        <img src="../Images/Icones/key_go.png" alt="" /></asp:HyperLink>
                </ItemTemplate>
                <HeaderStyle Width="20px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Login" SortExpression="UserName" meta:resourcekey="TemplateFieldResource2">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("UserName", "UtilisateursForm.aspx?user={0}") %>'
                        Text='<%# Eval("UserName") %>' meta:resourcekey="HyperLink1Resource1"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" meta:resourcekey="BoundFieldResource1" />
            <asp:BoundField DataField="LastLoginDate" HeaderText="Dernier login" SortExpression="LastLoginDate"
                meta:resourcekey="BoundFieldResource2" />
            <asp:CheckBoxField DataField="IsLockedOut" HeaderText="Verrouill&#233;" SortExpression="IsLockedOut"
                meta:resourcekey="CheckBoxFieldResource1" />
        </Columns>
    </asp:GridView>
</asp:Content>
